@use "./demo.scss";
/* 滚动条 */
//body
.VPSidebar {
  &::-webkit-scrollbar {
    width: 5px;
    height: 1px;
    // background-color: #f5f5f5;
  }
  /*定义滚动条轨道 内阴影+圆角*/
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: #ededed;
  }
  /*定义滑块 内阴影+圆角*/
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #535353;
  }
}
/* 上下分页 */
.pager-link {
  border: none !important;
  span {
  }
}

/* 内容页 */
.VPDoc.has-aside .content-container {
  max-width: none !important;
}

/* 代码预览、展示  */
.preview {
  border-radius: 4px;
  border: 1px solid #cdd0d6;
  margin-bottom: 20px;

  &-template {
    padding: 0.8rem;
    margin: 0.5px;
  }

  &-footer {
    border-top: 1px solid #cdd0d6;
    padding: 0.8rem;
    margin: 0.5px;

    &-button {
      display: flex;
      align-items: center;
      justify-content: flex-end;

      .btn {
        cursor: pointer;
        transition: 0.2s;
        margin-left: 10px;
        .icon {
          width: 1em;
          height: 1em;
        }
      }
    }
  }

  &-code {
    &-box {
    }

    &-footer {
      padding: 0.8rem;
      border-top: 1px solid #cdd0d6;
      text-align: center;
      cursor: pointer;
    }
  }
}
pre {
  background-color: #000;
  margin: 0;
  .hljs-tag {
  }
}

/* vitepress->table */
.vp-doc {
  table {
    width: 100%;
    background-color: rgb(255, 255, 255);
    font-size: 14px;
    line-height: 1.5em;
    td,
    th {
      padding: 0.6em 1em;
      max-width: 315px;
      white-space: pre-wrap;
    }
    td {
      text-align: left;
    }
  }
}

/* 返回顶部 */
.top {
  position: fixed;
  bottom: 150px;
  right: 100px;
  z-index: 11;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  &:hover {
    color: #409eff;
  }
}

/* 类型颜色 */
.vp-doc {
  [class^=lm-link]{
    color: var(--lm-link-text-color);
    margin-left: 5px;
  }
  [class^=lm-link]:hover{
    color: var(--lm-link-hover-text-color);
  }
  [class^=lm-link].is-disabled{
    color: var(--lm-link-disabled-text-color);
  }
}
